<ul>
    <li><strong>(<?php echo $this->data['count']; ?>)</strong></li>
    <li>
        <a href="<?php echo $this->url(array(), 'cart', true); ?>" title="Cart">
            <img title="Item" alt="Item" src="<?php echo $this->templateURL; ?>/images/item_icon.png" />
        </a>
    </li>
</ul>
<?php if($this->data['count'] > 0): ?>
<div id="minicart" class="remain_cart" style="display: none;">
    <p class="empty">
    <?php echo sprintf($this->translate("You have %d items in your shopping cart."), $this->data['count']); ?>
    </p>
    <ol>
        <?php foreach($this->data['items'] as $item): ?>
        <li>
            <div class="img-block">
                <img src="<?php echo $item['image']; ?>" title="<?php echo $item['name']; ?>" alt="<?php echo $item['name']; ?>" />
            </div>
            <div class="detail-block">
                <h4>
                    <a href="<?php echo $this->url(array('product_id' => $item['id'], 'product_name' => $this->ConvertStringToURL($item['name'])), 'product_detail', true); ?>" title="<?php echo $item['name']; ?>">
                        <?php echo $item['name']; ?>
                    </a>
                </h4>
                <p>
                    <strong><?php echo $item['quantity']; ?></strong> x <?php echo number_format($item['price'], 0, null , "."); ?><?php echo $this->translate('currency') ?>
                </p>
            </div>
            <div class="edit-delete-block">
                <a href="javascript:removeItem('<?php echo $item['id']; ?>')" title="Remove">
                    <img src="<?php echo $this->templateURL; ?>/images/delete_item_btn.png" alt="Remove" title="Remove" />
                </a>
            </div>
        </li>
        <?php endforeach; ?>
        <li>
            <div class="total-block"><?php echo $this->translate('total') ?>: <span><?php echo number_format($this->data['total'], 0, null, "."); ?><?php echo $this->translate('currency') ?></span>
            </div>
            <a href="<?php echo $this->url(array(), 'cart', true); ?>" title="Checkout" class="colors-btn"><?php echo $this->translate('checkout') ?></a>
            <div class="clear"></div>
        </li>
    </ol>
</div>
<?php endif; ?>